﻿var xmlHttp_ResInfo;
function GetInfo() 
{ 
    Onload();
  xmlHttp_ResInfo = GetAjax();
  var index = getParameter("id");
   var ResInfo_url = "GetInfo.aspx?id="+index;
   xmlHttp_ResInfo.open("post",ResInfo_url,true);
   xmlHttp_ResInfo.onreadystatechange=ShowInfo;
   xmlHttp_ResInfo.send(null);    
}
function ShowInfo()
{
    if (xmlHttp_ResInfo.readyState == 4) 
     {  
       document.getElementById("View_State").innerHTML=xmlHttp_ResInfo.responseText;
     }
}
function getParameter(param)
{
var query = window.location.search;
var iLen = param.length;
var iStart = query.indexOf(param);
if (iStart == -1)
   return "";
iStart += iLen + 1;
var iEnd = query.indexOf("&", iStart);
if (iEnd == -1)
   return query.substring(iStart);
return query.substring(iStart, iEnd);
}